package com.kfm.adaptor;

public class MyAdaptor {

    public C adaptor(A a){
        //
        return new C() {
            @Override
            public void say() {
                a.hello();
            }
        };
    }

    public void set(C c){
        c.say();
    }
}


class A{
    public void hello(){

    }
}


interface C{
    void say();
}